package com.bookheaven.beans;

import java.io.File;

import javax.faces.bean.ViewScoped;
import javax.inject.Named;

import com.bookheaven.core.entity.Author;

@ViewScoped
@Named("authorBean")
public class AuthorBean extends BookHeavenBean<Author> {
	private File				file;
	
	private static final long	serialVersionUID	= -6308970961624973153L;
	
	public Author getSelectedAuthor() {
		return selectedAuthor;
	}
	
	public void setSelectedAuthor(Author selectedAuthor) {
		this.selectedAuthor = selectedAuthor;
	}
	
	private Author	selectedAuthor;
	
	@Override
	public Author createEntity() {
		return new Author();
	}
	
	public File getFile() {
		return file;
	}
	
	public void setFile(File file) {
		this.file = file;
	}
	
}
